package top.zy.service.zymallgoodsservice.goods.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.zy.service.zymallgoodsinterface.entity.Spu;

import java.util.List;

@Mapper
public interface SpuMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Spu record);

    int insertSelective(Spu record);

    Spu selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Spu record);

    int updateByPrimaryKey(Spu record);

    List<Spu> selectPageBySearchAndSaleEnable(@Param("search") String search,@Param("saleable") Boolean saleable);

    int selectCountBySearchAndSaleEnable(@Param("search") String search,@Param("saleable") Boolean saleable);


}